package com.lize.threaduse;

public class Tread03 {
    public static void main(String[] args) throws InterruptedException {
        T1 t1 = new T1();
        t1.setName("李泽");
        t1.setPriority(Thread.MIN_PRIORITY);
        t1.start();
        for(int i=0;i<5;i++){
           Thread.sleep(100);
            System.out.println("hi000");
        }
        t1.interrupt();
    }
}
class T1 extends Thread{

public void run(){

    while (true) {
        for(int i=0;i<100;i++){

            System.out.println(Thread.currentThread().getName()+"在吃包子");
        }
        try {
            System.out.println("休眠中。。。。。");
            Thread.sleep(10000);
        } catch (Exception e) {
            System.out.println(Thread.currentThread().getName()+"intterrupt");
        }
    }

}


}